Guild icon
Project Sekai
🔒 CrewCTF 2023 / ✅-crypto-nec_easy
Avatar
nec_easy - 1000 points
Category: Crypto Description: Can we factor N which is related to EC ? Author : kiona nc nec-easy.chal.crewc.tf 20006 Files:Tags: No tags.
Sutx pinned a message to this channel. 07/07/2023 10:02 PM
Avatar
@Utaha wants to collaborate 🤝
Avatar
@kanon wants to collaborate 🤝
Avatar
@Violin wants to collaborate 🤝
Avatar
@Aptx wants to collaborate 🤝
06:22
@layka_ wants to collaborate 🤝
Avatar
anyone good with lattices here ?
07:56
(sig2_j - sig2_i) * nonce - (sig1_j - sig1_i) * d = 0 mod r
07:56
we have 7 equations of that
07:56
with unknown modulus
Avatar
what is known?
Avatar
sig2 sig1 (edited)
08:08
08:08
thinking of this form
Avatar
so I guess it's a * nonce = b * d mod r, where a, b is known?
Avatar
let's say you can have a1, b1, a2, b2, (edited)
08:09
then a1b2-a2b1 is a multiple of r
08:09
so you can take gcd of all a1b2-a2b1 and get r
08:09
nonce and d is trivial afterward
08:09
tho you only get the ratio (edited)
Avatar
Avatar
Utaha
then a1b2-a2b1 is a multiple of r
i always forget abt this trick
Avatar
i'll go for that
Avatar
solved
Avatar
Avatar
layka_
used /ctf solve
✅ Challenge solved.
Exported 27 message(s)